This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.
I have a long history of breaking things in my monobook.css through incompatibilities. And then I can't fix them, even when I revert, because browsers hate me. But I guess I'll give it a shot. -Joshuapaquin05:51, 1 February 2007 (UTC)
Well, it seems to work mostly, though there are some bugs. I don't know whether those are compatibility issues with other monobook.js tools, or whether they're just general browser issues. -Joshuapaquin01:07, 5 February 2007 (UTC)
So here's an incompatibility issue with WikiEd: The warning/caution/etc tabs don't insert the appropriate text into a WikiEd editing box, only a standard editing box. The edit summary does work. -Joshuapaquin22:00, 15 February 2007 (UTC)
I've only been testing a little while, but it does seem to be compatible with Lupin's popups and Anti-Vandal Tool. Danski1418:21, 17 February 2007 (UTC)
My sig shows up as ffmon 2007-02-19 22:0122:01, 19 February 2007 (UTC) (~~~~) when it should be ffmon 2007-02-19 22:01 (~~~). Can I change a varriable in TF to fix this? ffmon 2007-02-19 22:01
I noticed you trying out some scripts on Wikipedia:Sandbox, so I thought you'd be a good person to ask a question. I'm a professional coder with a fair knowledge of Javascript and was thinking of trying out a few things with scripts within Wikipedia. I was wondering if you might know where I can look to find:
A tutorial on user scripts
Some information on how to release a script with a useful feature for general use.
None of the features of Twinkle work on my computer. I'm using Firefox 2.0.0.2, having downloaded it just a few days ago because I was tired of IE7 breaking all my Wikipedia JavaScript. All my other scripts finally work, but Twinkle still does nothing. Here's the error messages I get when I try to use it:
When I click [restore this version]:
Querying revision...........
Grabbing edit form.................
Updating the textbox...
couldn't grab element "editform", aborting, this could indicate failed respons from the server
When I click any rollback button from twinkle (normal, agf, or vandal):
Querying revisions.....
Evaluating revisions to see if rollback is the last contributor...
Finding last good revision...
We where to revert zero revisions. As that makes no sense, we'll stop reverting this time. It could be that the edit already have been reverted, but the revision id was still the same.
CSD and AIV give similar messages, and the warning buttons never appear.
I checked in the Start menu, add or remove programs, and C:\Program files. No mention whatsoever of any ZoneAlarm program. I use Norton as my firewall. PyrospiritFlamesFire21:43, 5 March 2007 (UTC)
Another note: The warning and restore this version features worked on a school computer that used Firefox 1.0. However, the rest still didn't work, and none of it works on my computer. PyrospiritFlamesFire21:48, 5 March 2007 (UTC)
The "no editform" is usually a result of something hijacking the http stream and adding data to the html rendering it non-valid xml. Check the source of a page to see if something strange has moved in.→AzaToth22:01, 5 March 2007 (UTC)
I know pretty much nothing about html code, so I really don't know what to look for. Could you be more specific? Also, this isn't just happening on one page; it's happened every time. PyrospiritFlamesFire22:06, 5 March 2007 (UTC)
OK, so I added this into my monobook (which is also a jumble of scripts from User:VoA) and I refreshed my browser etc. But when I went to try out the features, I found that there was no difference whatsoever made.
I'm using Firefox 2.0.0.2 and I don't have ZoneAlarm on the computer. So what's up? I'd be a lot happier if someone could actually add the scripts to my Monobook as I am sure I'd do something wrong. Thanks! - Erebus55519:24, 7 March 2007 (UTC)
Ooh, if only I was an admin, I'd simply copy my installation to your monobook.js file, but I'm not. Try asking an administrator to do it, like Eagle_101, Lupin, or Where; you can find a full list at Wikipedia:List of administrators. I'd be happy to do it, but only admins can edit other users' JS files. — Tuvok[T@lk/Improve me] 23:25, 7 March 2007 (UTC)
Incompatible with Firefox 2?
I have determined that Twinkle is incompatible, at least in part, with Firefox 2.002. I found this out by logging in to Wikipedia using Firefox 1.0, then updating the program to 2.002. Using 1.0, the [restore this version], reporting, and warning functions all worked. However, after upgrading to 2.002, these functions stopped working.
The rollback buttons didn't work in any version. This appears to be an error in the script itself that causes it to search
for the last editor with the name "rollback", and since it obviously can't find one, it tries to revert to zero revisions, thus giving the error message I mentioned above. I have almost no knowledge of how JavaScript works, so this might not be right, but it makes sense given the error message. PyrospiritFlamesFire22:56, 7 March 2007 (UTC)
As am I; no problems here. (Side note: Firefox 2 seems to be the most standards-compliant browser available for Windows, as evidenced by browser support tests on my website... So it is probably a conflict with one of your extensions.) — Tuvok[T@lk/Improve me] 23:19, 7 March 2007 (UTC)
I uninstalled all my other scripts, and the rollback doesn't crash anymore, but it still gives the couldn't grab element "editform", aborting, this could indicate failed respons from the server error message whenever I try to do anything with it. I still don't quite understand what you said about this earlier with the html and xml, though. Could you try to explain that so that maybe I can fix this? PyrospiritFlamesFire23:41, 7 March 2007 (UTC)
Also, my only extension according to Firefox is the default Talkback that sends messages about program crashes to Mozilla, and it's not enabled. PyrospiritFlamesFire23:44, 7 March 2007 (UTC)
It works for me with 2.0 Try starting FF in safe mode Start > Programs > Mosilla FireFox > FireFox (Safe Mode). You will get a dialog where you can diable add-ons and reset various settings. See Safe Mode for more info. --Gadget850 ( Ed)00:17, 8 March 2007 (UTC)
Trying this now. By the way, I reinstalled all the scripts that I still wanted, and it seems the imcompatible script was one of the ones I didn't want. Go figure. :) PyrospiritFlamesFire00:24, 8 March 2007 (UTC)
I'm running in safe mode, and I tested it on some vandalism in Recent Changes. Still can't grab the "editform", so the functions still don't work. On a related note, I found the code that generates this error message. It's in User:AzaToth/twinklefluff.js on lines 670 and 495 (using the syntax highlighter script on 1024 by 768 screen resolution). PyrospiritFlamesFire00:32, 8 March 2007 (UTC)
Could you open an edit page and check the source coude for that page, see if there is some tags before or after the html tags. →AzaToth01:37, 8 March 2007 (UTC)
As you can see, there's nothing but a brief comment before the html tag, but there's some sort of JavaScript after the closing html tag. I'm clueless as to what it means, but perhaps you can make out something of the problem from it? PyrospiritFlamesFire02:05, 8 March 2007 (UTC)
I don't know what it is, but it is the root of the problem. Because if that script, the text isn't "well formed" Xml, and thus unparseable. →AzaToth02:06, 8 March 2007 (UTC)
By googling a bit, I found out it's problably Symantec who is destroying your code, if you dissable Norton/Symantec, it should probably work. →AzaToth02:08, 8 March 2007 (UTC)
Do you know of any way around that? Because getting Twinkle working isn't worth getting a virus, so I'm not disabling my virus protection entirely. PyrospiritFlamesFire02:22, 8 March 2007 (UTC)
WoOTness, I finally got rid of that code. Unfortunately, I had to disable popup blocking *grumble*, but oh well, it's worth it. It all seems to work now. Thanks for all your help! PyrospiritFlamesFire02:54, 8 March 2007 (UTC)
Now that I look, I have en.wikipedia.org as a exception to pop-up blocking. Tools > Options > Content > Block pop-up windows > Exceptions. --Gadget850 ( Ed)10:49, 8 March 2007 (UTC)
That a "bug" in the template, I think I'm going to remove the "Talk:" fro the chat-templates, as they are rather non-neede (discussion pages must not alway be "talk" pages. →AzaToth17:44, 8 March 2007 (UTC)
Userbox
Here is a userbox I created. Tell me what you think.
This module will, for non-admins, request page protection via WP:RFPP. For admins will will protect the page accordingly to what specified, it will also add appropriate template (or remove is action is unprotect). Please tell me if there are something wrong, or missing. →AzaToth22:18, 10 March 2007 (UTC)
WikiEd compatability issue
I currently use twinkle, but wikiEd breaks it while it is on. I use Mozilla/5.0(Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010Firefox/2.0rfiyrf . TW breaks when it tries to paste in the text area,like when warning a user. TW rollback still works, strangly enough.
Errors:
Have added that patch to twinklewarn now, hope it solves the problem, also, the error is in your own monobook file, this.setText = function( id, txt ) { this[ id ].getElementsByTagName( 'a' )[ 0 ].firstChild.data = txt }, nothing I can do anything about, the warning is just the usual column-count warning, ignore that one. →AzaToth17:42, 8 March 2007 (UTC)
Even with a correct Twinkle installation the text pasting does not work (without an error message). It might matter that the wpTextbox1 is hidden (wpTextbox1 style.display = none;). I have updated wikEd so that changes no longer disrupt the undo history. The "compatibility code" from the wikEd homepage has not been changed. AzaToth: If you need help or have questions about wikEd please drop me a note. Cacycle00:23, 12 March 2007 (UTC)
Would someone mind looking at my monobook quick and let me know what settings for TW will make so that User talk pages I tag aren't set to auto watch? Some days I tag a bunch and might forget to remove them, and every couple days I end up having to manually remove dozens of random IP talk pages or throwaway SPA vandal accounts... - Denny15:51, 11 March 2007 (UTC)
If you don't want to force watching of pages you have reverted on, then remove the unvanted actions from
If you don't want to watch anything, set the query to
watchRevertedPages : [],
Remember though that default per settings is always applied in that case, so if you per settings is watching everything, then it will still be added to watchlist. shamelessly copied from above by ffmyes? on 14:24, 12 March 2007 (UTC).
Problem with twinklewarn
Twinklewarn doesn't work right, the warning tabs (1)/(2) at the top of user-talk pages aren't there 98% of the time. I have successfully warned only one user who's talk page was empty, but when I try to warn other users who's talk pages have something in them, the tabs at the top of the page are not there. Could the contents of a user talk page have something to do with this?--DanMP5 | C16:27, 13 March 2007 (UTC)
If oyu only see [1] and [2], it could be the problem that you have a too small window, as there should also be [3], [4] and [s] (and [b] for admins). →AzaToth16:30, 13 March 2007 (UTC)
I have found the problem, My screen size was 800 x 600, I changed it to 1024 x 768 and warnings [1]-[3] were visible, but everything was way to small so I had to change it back, and now non of the warnings are visible.--DanMP5 | C19:04, 13 March 2007 (UTC)
Script error
Hey guys. Some new change is causing a script error in IE and TWINKLE isn't working. I wouldn't care, since I generally use Firefox, but now VandalProof, which relies on IE, displays a script error every page it loads. Can you try to see what's doing this? I've only noticed it Sunday but I haven't been on Wikipedia since Friday. -- BlastOButter42SeeHearSpeak06:36, 12 March 2007 (UTC)
Where does it say the file? The only details the IE box gives are Line, Char, Error, Code, and URL; for URL, any Wikipedia URL produces the same error. -- BlastOButter42SeeHearSpeak03:08, 14 March 2007 (UTC)
Okay, wait a minute now, I was a bit mixed up, sorry. Now I've got only the TWINKLE script in my monobook (I thought I did before but I was mistaken), and the IE error message is Line: 52, Char: 6, Error: Unexpected call to method or property access., Code: 0, and URL again is whatever page I'm on. Sorry for mixing up earlier. Now, where can I find what file? -- BlastOButter42SeeHearSpeak03:26, 14 March 2007 (UTC)
I had the same problem, here's how to fix it. First, put the following code into your monobook.js:
var detect = navigator.userAgent.toLowerCase();
var IE;
var place = detect.indexOf('msie') + 1;
if (place) IE=true;
if (!IE) {
/* Scripts go here */
}
Then, put any scripts that are incompatible with Internet Explorer under "scripts go here", within the brackets. Any scripts you put in there won't be executed in Internet Explorer. I use this on almost all my scripts, and I almost never get the script error. PyrospiritFlamesFire15:47, 13 March 2007 (UTC)
Thanks, that seems to be a very effective workaround (I'd still like to see the problem fixed, though). -- BlastOButter42SeeHearSpeak
uw templates and subst=subst: trick
There is an issue (probably a bug with MediaWiki) that breaks the uw templates if you don't add the Article parameter and use the subst=subst: parameter. It works smoothly if you add the article parameter or if you remove the subst one. Could it be possible not to put subst=subst: at the end of the templates if you don't provide any article? -- lucasbfrtalk10:21, 15 March 2007 (UTC)
Have made that change now. There is a fix for that particular bug, bug it hasn't been implemented yet per reason I don't know. →AzaToth13:05, 15 March 2007 (UTC)
Twinkle was working fine for me, up until this morning when I started to get the same errors. I have tried on two machines, both firefox (osx tiger and xp). Any one else have suggestions? Cheers, Richard Thompson12:03, 16 March 2007 (UTC)
I was afraid it was a firewall again for me too. :( I feel nekkid without it! Something about failing to get a revision ID... and of course it worked that time and I just wiped this page. — RevRagnarokTalkContrib12:34, 16 March 2007 (UTC)
Hmm, is it still borked? The script requirest that the variable wgCurRevisionId is sat in the document, perhaps there was some temporary hickup, of some scap etc... →AzaToth13:18, 16 March 2007 (UTC)
An edit summary like "You have been blocked. TWINKLE" is really quite bizarre and undoubtedly confusing to the user in question. What is the point of these edit summaries except to advertise the script? At least use "using TWINKLE" like AWB does. I brought this up before and it was never addressed. —Centrx→talk • 21:46, 14 March 2007 (UTC)
You can change it to whatever you want in the configuration. Just add the configuration code on WP:TW#Configuration to your monobook.js (if it isn't already there) and change "using [[WP:TWINKLE|TW]]" to whatever you want. -- BlastOButter42SeeHearSpeak23:10, 14 March 2007 (UTC)
I don't use the script; I see the advertisement smattered around Wikipedia, oftentimes in bizarre places like section headers. This is not the message a blocked user should receive, with section header "You have been blocked. TWINKLE". This is not a matter of personal preferences. —Centrx→talk • 20:04, 16 March 2007 (UTC)
That is nothing I can do anything about, it seems that some people are copying manually the edit summary and uses that as a section heading. →AzaToth20:11, 16 March 2007 (UTC)
It could be because you are including morebits twice. The prder of the tabs is dependent on the order of inclusion if the modules. →AzaToth17:06, 16 March 2007 (UTC)
Also i found that when trying to use the rpp function and when i reported it got to the popup and i noticed that vandalism is under full protect not semi-protect (i say this because i noticed on vandal patrol that vandalism is usually made by new users or IP's) Cocoaguy ここがいい contribstalkTodays Pick22:14, 16 March 2007 (UTC)
Hmm, vandalism should be under both. Probably I mixed something up, as it was difficult to find which of them should be used when, and where. →AzaToth23:11, 16 March 2007 (UTC)
Installation instructions
The script is great, and I recommended it to another editor, and he suggested it was too complicated to install. I've tried to simplify the installation instructions, but I'm not sure what he doesn't understand, though I can see why it might be intimidating. Perhaps someone better at conveying this sort of thing to a layperson should take a crack at it. -- TedFrank03:22, 16 March 2007 (UTC)
Ask a person with administrative powers to install it for him, or wait a few min until Azatoth is a admin. Oh and by the way...what's the name of the user? --KZ Talk •Vandal• Contrib 07:48, 21 March 2007 (UTC)
Help
I can't seem to get it to work. I have [rollback (AGF)] || [rollback] || [rollback (VANDAL)] sure enough and have cleared my cache turned my firewall off and still nothing happens when I click on one of those shiny new buttons. Any suggestions? Purgatory FubarConverse or Snafu00:27, 17 March 2007 (UTC)
Make sure you're using Firefox. Also, disable ZoneAlarm if you use it and disable Norton AntiSpam Popup Blocking if you use Norton Antivirus or Internet Security. PyrospiritFlamesFire18:07, 18 March 2007 (UTC)
Try shortening your script, or use importScript('name of script');
. Although this might not solve anything, it'll make it easier for people to read the script and find the prob. --KZ Talk •Vandal• Contrib 07:44, 21 March 2007 (UTC)
Probably silly question!
Are there any plans in the works to make a version of Twinkle that is functional for IE7?--Xnuala (talk) 00:52, 23 March 2007 (UTC), who really wants one!
If you can save files to anywhere on the computer, just install Firefox there instead of in the default C:\Program files after downloading it. I've tried it before and it works; I have Firefox 2 installed under my account only at my school network, and it works on every computer in the network. Very useful.
I don't use these scripts myself, but have seen some effects. If not already present can the actions of these scripts be set to report potential username violations to WP:RFCN instead of WP:AIV? When a non-editing potential username vio comes up, unless the name itself is obvious vandalism, there is no need to take immediate action. — xaosfluxTalk03:40, 24 March 2007 (UTC)
Per standard a confirmation is required to submit username violations, with the following text: "This will report the username to WP:AIV as blatantly inappropriate. Usernames should only be reported at AIV if they are clearly rude, inflammatory, unnecessarily long or confusing, too similar to an existing user, contain the name of an organization or website, or are otherwise inappropriate. Borderline cases should be reported manually at WP:RFCN. Do you still want to report the username at AIV?". Perhaps I could change the text to be more direct? →AzaToth04:00, 24 March 2007 (UTC)
I have inserted the twinkle codes into the monobook file, but seems like nothing happened. How do u start to use it? Wooyi21:48, 24 March 2007 (UTC)
Hello:) If you find vandalism go to the history, click "Compare Selected Versions", when you find a non-vandalised version click "edit" then you will see buttons, click one and it will revert it. Peace:) --James, La gloria è a dio03:24, 25 March 2007 (UTC)
Hi, I tried the fix above here but it still dosent work. I still get script errors while using Vandalproof (which uses IE). Can anybody go over my monobook or the script error below? - Hdt83 | Talk03:38, 25 March 2007 (UTC)
I think that it would be possible to get twinkle to work in IE, if AzaToth installed ActiveX capabilities. Not sure, though. GracenotesT § 06:44, 27 March 2007 (UTC)
Is there a list of scripts which conflict with this script when included together in the monobook.js script? For example are there any reports on known issues with the Navigation popups script or the edit count tool from Interiot? I noticed that the script limits the output generated by the edit count tool, and as such elected to remove it. --Aarktica22:54, 31 March 2007 (UTC)